package org.lightfw.utilx.text.transfer;

import java.util.ArrayList;
import java.util.List;

/**
 * ResultMock
 *
 * @author Michael.Wang
 * @date 2017/11/16
 */
public class ResultMock {
    public static void main(String[] args) {
        CommonResponse<List<OperateLogVo>> response = new CommonResponse<>();
        List<OperateLogVo> data = new ArrayList();
        response.setData(data);

        {
            OperateLogVo log = new OperateLogVo();
            log.setContent("余额增加300元");
            log.setBizType("会员卡");
            log.setOperateeNames("张三，18600000000");
            log.setOperateType("更新");
            log.setOperateTime("2017-11-11 22:22:00");
            log.setOperator("左左");
            data.add(log);
        }

        {
            OperateLogVo log = new OperateLogVo();
            log.setContent("余额减少100元");
            log.setBizType("会员卡");
            log.setOperateeNames("李三，18600000099");
            log.setOperateType("更新");
            log.setOperateTime("2017-11-11 22:23:00");
            log.setOperator("悠悠");
            data.add(log);
        }

        String result = JSONUtil.toJSONString(response);
        System.out.println(result);

        /*
            "bizType":"1",
			"operateTime":"2017-11-11 22:22:00",
			"operateType":"3",
			"operateeNames":"张三，18600000000",
			"operator":"50102235"
         */
    }
}